package org.wanho.shop.service.impl;

import org.wanho.shop.dao.ProductDao;
import org.wanho.shop.dao.impl.ProductDaoImpl;
import org.wanho.shop.entity.Product;
import org.wanho.shop.service.ProductService;

import java.util.List;

/**
 * Author：汤小洋
 * Date：2023-04-26 11:20
 * Description：<描述>
 */
public class ProductServiceImpl implements ProductService {

    private ProductDao productDao = new ProductDaoImpl();

    @Override
    public List<Product> findAll() {
        return productDao.selectAll();
    }
}
